/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cflp;

/**
 *
 * @author Gustavo Bula
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String[] nod = {"50"};
        String[] arc = {"2"};
        String[] u = {"2"};
        String[] cap = {"25"};
        String[] cost = {"10"};
        String[] nombres = new String[32];
        int s = 0;
        for (int l = 0; l < nod.length; ++l) {
            for (int c = 0; c < arc.length; ++c) {
                for (int e = 0; e < u.length; ++e) {                        
                    for (int k = 0; k < cap.length; ++k) {
                        for (int f = 0; f < cost.length; ++f) {
                            nombres[s] = "N" + nod[l] + "L" + arc[c] + "U" + u[e] + "K" + cap[k] + "F" + cost[f];
                            System.out.println(nombres[s]);
                            s = s + 1;
                        }
                    }
                }
            }
        }

       /**System.out.println("Algoritmo Genetico");
        for (int i = 0; i < nombres.length; ++i) {
            String nombre = "problemas/" + nombres[i] + ".txt";
            Network n = new Network(nombre);
            System.out.println(nombres[i]);
            for (int j = 1; j <= 5; ++j) {
                System.out.println("Corrida " + j);
                java.util.Date tInicio = new java.util.Date();
                AlgoritmoGenetico ag = new AlgoritmoGenetico(50, 100, 0.01, 0.5, nombre);
                java.util.Date tFinal = new java.util.Date();
                System.out.println((tFinal.getTime() - tInicio.getTime()) / 1000d);
            }
        }**/
        System.out.println("Busqueda Tabu");
        for (int i = 0; i < nombres.length; ++i) {
            String nombre = "problemas/" + nombres[i] + ".txt";
            Network n = new Network(nombre);
            System.out.println(nombres[i]);
            for (int j = 1; j <= 5; ++j) {
                System.out.println("Corrida " + j);
                java.util.Date tInicio = new java.util.Date();
                BusquedaTabu bt = new BusquedaTabu(7, 100, 1, n);
                java.util.Date tFinal = new java.util.Date();
                System.out.println((tFinal.getTime() - tInicio.getTime()) / 1000d);
            }
        }
    }
}
